package com.scpii.universal.pns.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.EnterpShopTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.pns.hibernate.entity.TagValues;

public class TagValuesService implements BaseInterface<TagValues> {

	private BaseDao<TagValues> tagValuesDao;
	
	public void setTagValuesDao(BaseDao<TagValues> tagValuesDao) {
		this.tagValuesDao = tagValuesDao;
	}

	@Override
	public TagValues get(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TagValues> getAll() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public TagValues get(String propertyName, Object value) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TagValues> getList(String propertyName, Object value)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Long getTotalCount() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void save(TagValues obj) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(TagValues obj) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(TagValues obj) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Integer id) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<TagValues> hqlGetList(String hql, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TagValues> sqlGetList(String sqls, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	public List<TagValues> getTargetsByTagId(String tagId)throws Exception{
		Map<String, Object> argsMap = new HashMap<String, Object>();
		argsMap.put("tagId", Long.parseLong(tagId));
		return tagValuesDao.hqlGetList("GET_TARGETS_BY_TAGID", argsMap);
	}
}
